//
//  SHPhotoBrowserCell.h
//  Tradeaider
//
//  Created by 王方伟 on 2017/7/12.
//  Copyright © 2017年 Shinyhub. All rights reserved.
//

#import <UIKit/UIKit.h>
@class FWGroupModel, SHPhotoBrowserCell;

@protocol PhotoBrowserCellDelegate <NSObject>
@optional
/** 单击手势 */
- (void)onClickSingleTap:(SHPhotoBrowserCell *)cell;
/** 拖动手势 */
- (void)onPanTap:(SHPhotoBrowserCell *)cell scale:(CGFloat)scale;
/** 长按手势 */
- (void)photoBrowserCell:(SHPhotoBrowserCell *)cell didLongPressWith:(UIImage *)image;
@end

@interface SHPhotoBrowserCell : UICollectionViewCell
@property (weak, nonatomic) UIImageView *imageView;
@property (strong, nonatomic) FWGroupModel *model;
@property (copy, nonatomic) void (^downloadFinishBlock)();
@property (copy, nonatomic) void (^roateImageBlock)(UIImage *image);
@property (weak, nonatomic) id<PhotoBrowserCellDelegate> delegate;

- (void)setPlaceholderImage:(UIImage *)placeholderImage hightUrl:(NSURL *)hightUrl originalUrl:(NSURL *)originalUrl;
@end
